package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.vo.EmployeeLoginVO;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    EmployeeLoginVO login(EmployeeLoginDTO employeeLoginDTO);


    /**
     *  员工分页查询
     * @param employeePageQueryDTO
     * @return
     */
    public Result<PageResult> page(EmployeePageQueryDTO employeePageQueryDTO);


    /**
     * 新增员工
     * @return
     */
    public Result addEmp(EmployeeDTO employeeDTO);

    /**
     *  改变员工状态
     * @return
     */
    public Result changeEmpStatus(Integer status , Long id);

    /**
     * 根据ID查询，回显员工信息
     * @return
     */
    public Result<Employee> getByID(Long id);

    /**
     * 修改员工信息
     * @return
     */
    public Result updateEmp(EmployeeDTO employeeDTO );

}
